<#include "/common/layout.html"> 
<@layout title="123">
<script type="text/javascript" src="/js/easyui/easyui_grid.js"></script>
<script type="text/javascript">
var datagrid;
var model_name = "/customer";
var model_title="会员";
	$(function() {
		$("#edit_shop_id").combobox({    
		    url: '/shop/combobox',  
		    valueField:'id',    
    		textField:'name',     
		    width:150
		});
		
		datagrid=$('#customer_datagrid').datagrid({
		 	url:model_name+'/grid',
		 	columns:[[    
		        {field:'id',title:'编号',width:100,checkbox:true},
		        {field:'shop_name',title:'所属商户'},
		        {field:'customer_type_name',title:'会员类型'},
		        {field:'username',title:'会员名',width:100},
		        {field:'password',title:'密码',align:'right',width:100},
		        {field:'realname',title:'真实姓名',width:100},
		        {field:'phone',title:'手机号',width:100},
		        {field:'front_sign',title:'是否需要定金',
		        	formatter:function(value,row,index){
						return value==1?"是":"否";
					}},
		        {field:'create_time',title:'创建时间',width:150}
		    ]]
		})
	})
	
</script>
<script type="text/javascript" src="/js/easyui/easyui_grid_common.js"></script>

</head>
<#include "/common/seach.html" />
<@seach tableid="customer_datagrid">
<td>商户</td>
<td><input id="edit_shop_id" name="seach_s.id"></td>
<td>会员名</td>
<td><input type="text" name="seachLike_a.username"></td>
</@seach>
</@layout>